package com.itheima.manager;

import com.itheima.domain.OmsOrderSetting;
import com.itheima.service.OmsOrderSettingService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

@Component
public class OmsOrderSettingManager {

    @DubboReference
    OmsOrderSettingService omsOrderSettingService;

    //获取指定订单设置
    public OmsOrderSetting get(Long id) {
        return omsOrderSettingService.get(id);
    }

    //修改指定订单设置
    public void updates(Long id, OmsOrderSetting omsOrderSetting) {
        omsOrderSettingService.updates(id,omsOrderSetting);
    }
}
